package com.tmpt.controller.action;

import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.opensymphony.xwork2.ActionSupport;

@Controller
@Scope("prototype")
public class JsonAction extends ActionSupport{
	private Logger log = Logger.getLogger(this.getClass());
	
	private String userName;
	private String password;
	private String result;
	
	
	public String execute(){
		try{
			this.result = "okkkkkkkkkk";
		} catch (Exception e) {
			this.result = e.getLocalizedMessage();
		}
		return "input";
	}


	

	public String getUserName() {
		return userName;
	}



	public void setUserName(String userName) {
		this.userName = userName;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}



	public String getResult() {
		return result;
	}



	public void setResult(String result) {
		this.result = result;
	}
	
	
	
}
